package com.fjsh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjsh.entity.AppRoute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface AppRouteMapper extends BaseMapper<AppRoute> {

    @Select("select * from app_route")
    List<AppRoute> findAll();

    @Select("select * from app_route where route_id = #{routeId} AND `delete` = 0 LIMIT 1")
    AppRoute findByRouteId(String routeId);

    boolean update(AppRoute route);

    boolean insertAppRoute(AppRoute route);

    boolean delete(AppRoute route);

}